﻿(function ($) {
    var ckEditor = $('#text-html-content-data')
        , undefined;

    window.CKEDITOR_GETURL = function (resource) {
        if (!resource.match(/\/ckeditor\//))
            resource = '/ckeditor/' + resource;

        return resource;
    };

    if (ckEditor.length) {
        $.getScript('/ckeditor/ckeditor.js', function () {
            CKEDITOR.editorConfig = function (config) {
                
            };

            CKEDITOR.replace('text-html-content-data', {
                customConfig: '',
                toolbar: 'Steve',
                toolbar_Steve: [
                    ['Source'],
                    ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'],
                    ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
                    ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript'],
                    ['NumberedList', 'BulletedList', '-', 'Blockquote'],
                    ['Link', 'Unlink'],
                    ['Table', 'HorizontalRule', 'SpecialChar']
                ]
            });
        });
    }
})(jQuery);